package com.example.tushu.Pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("loan")
public class Loan {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("loan_book_id")
    private String bookId;
    @TableField("loan_user_id")
    private String userId;
    @TableField("loan_status")
    private String status;
    @TableField("loan_time")
    private String loanTime;
    @TableField("loan_return_time")
    private String returnTime;
//    @TableField(exist = false)
    private Book book;
//    @TableField(exist = false)
    private User user;

}
